package com.heima.pojo;

import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class Emp {
    private Integer id;//ID主键
    private String username;
    private String password;
    private String name;
    private String gender;
    private String phone;
    private Integer job;//职位 1.班主任 2.讲师 3.学工主管 4.教研主任 5.咨询师
    private Integer salary;
    private String image;
    private LocalDate entryDate;
    private Integer deptId;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    //封装部门名称数
    private String deptName;//部门名称
//    要与接收的经历数据名称对的上`
    private List<EmpExpr> exprList;
    public void setImage(String image) {
        this.image="https://dawn-itcast.oss-cn-hangzhou.aliyuncs.com/"+image;
    }
}
